#include <stdio.h>

#define ONE   1	// 0000 0001
#define TWO   2	// 0000 0010
#define THREE 4	// 0000 0100

void func(int flags)
{
	if (flags & ONE) printf(" flags has ONE! ");
	if (flags & TWO) printf(" flags has TWO! ");
	if (flags & THREE) printf(" flags has THREE! ");
	printf("\n");
}

int  main()
{
	func(ONE);
	func(THREE);
	
	func(ONE | TWO);
	return 0; 
}
